package com.badibadi.activity;

import com.badibadi.uniclubber.R;
import com.badibadi.uniclubber.R.id;
import com.badibadi.uniclubber.R.layout;
import com.badibadi.uniclubber.R.menu;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;

public class SuoyouClubActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_suoyou_club);
		
		//俱乐部总览
		this.findViewById(R.id.button1).setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				Intent intent=new Intent(SuoyouClubActivity.this,ClubListActivity.class);
				startActivity(intent);
			}
		});
		//我的俱乐部
				this.findViewById(R.id.button2).setOnClickListener(new View.OnClickListener() {
					
					@Override
					public void onClick(View v) {
						// TODO Auto-generated method stub
						Intent intent=new Intent(SuoyouClubActivity.this,ClubMyClubActivity.class);
						startActivity(intent);
					}
				});
				//地区的俱乐部
				this.findViewById(R.id.button3).setOnClickListener(new View.OnClickListener() {
					
					@Override
					public void onClick(View v) {
						// TODO Auto-generated method stub
						Intent intent=new Intent(SuoyouClubActivity.this,ClubRigionListActivity.class);
						startActivity(intent);
					}
				});
				//朋友的俱乐部
				this.findViewById(R.id.button4).setOnClickListener(new View.OnClickListener() {
					
					@Override
					public void onClick(View v) {
						// TODO Auto-generated method stub
						Intent intent=new Intent(SuoyouClubActivity.this,ClubFriendsActivity.class);
						startActivity(intent);
					}
				});
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.suoyou_club, menu);
		return true;
	}

}
